package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 培训对象科室轮转计划对象 TRAINING_CADET_ROTATION_PLAN
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingCadetRotationPlan extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String rotationPlanId;

    private String cadetId;

    private String baseId;

    private String deptId;

    private String mentorId;

    /**
     * 培训开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 培训结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    private Long modifyBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 培训内容
     */
    @Excel(name = "培训内容")
    private String trainingContent;

    /**
     * 培训对象
     */
    @Excel(name = "培训对象")
    private String cadetName;

    /**
     * 培训基地
     */
    @Excel(name = "培训基地")
    private String baseName;

    /**
     * 科室
     */
    @Excel(name = "科室")
    private String deptName;

    /**
     * 导师
     */
    @Excel(name = "导师")
    private String mentorName;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("rotationPlanId", getRotationPlanId())
                .append("cadetId", getCadetId())
                .append("baseId", getBaseId())
                .append("deptId", getDeptId())
                .append("mentorId", getMentorId())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("isDelete", getIsDelete())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .toString();
    }
}
